﻿using FairyGUI;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

/// <summary>
/// 与第一个场景有关的管理器(演示用，可删除)
/// </summary>
public class Scene01Mgr : UnityNormalSingleton<Scene01Mgr> {

	// Use this for initialization
	void Start () {
        print("这个一个演示场景");
        //加载ab
        LoadAssetBundle();
        //初始化ui
        XLuaManager.Instance.RequireLua("SceneLua/MainScene01");
        XLuaManager.Instance.StartLua("Scene01_Main");
    }

    // Update is called once per frame
    void Update () {
		
	}

    void LoadAssetBundle()
    {
        AssetBundle ab = AssetBundle.LoadFromFile(AppConst.abPathURL + "/Windows32_asset/fairygui/mainui.ab");
        UIPackage.AddPackage(ab);
    }
}